home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1661 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. Subject: more diffs...
  2. Date: Sat, 18 Jun 94 1:00:56 CDT
  3. From: Juergen Lock <nox@jelal.north.de>
  4. Message-Id: <9406172301.AA00619@jelal.north.de>
  5.  
  6. sleep() can also wake up because of signals:
  7.  
  8. Index: bios.c
  9. @@ -219,7 +219,7 @@
  10.              h = dev-SERDEV;
  11.  
  12.          if (h >= 0 && h < btty_max) {
  13. -            if (!BCONSTAT(dev))
  14. +            while (!BCONSTAT(dev))
  15.                  sleep(IO_Q, (long)&bttys[h]);
  16.          } else if (dev > 0) {
  17.              unsigned long tick;
  18.  
  19. and i think we no longer need these...
  20.  
  21. Index: pipefs.c
  22. @@ -620,7 +623,9 @@
  23.  /* wake up any readers, and wait for them to gobble some data */
  24.              if (p->rsel) {
  25.                  wakeselect(p->rsel);
  26. +#if 0
  27.                  p->rsel = 0;
  28. +#endif
  29.              }
  30.              wake(IO_Q, (long)p);
  31.              sleep(IO_Q, (long)p);
  32. @@ -657,7 +662,9 @@
  33.      /* is someone select()ing the other end of the pipe for reading? */
  34.              if (p->rsel) {
  35.                  wakeselect(p->rsel);
  36. +#if 0
  37.                  p->rsel = 0;
  38. +#endif
  39.              }
  40.              wake(IO_Q, (long)p);    /* readers may continue */
  41.  DEBUG(("pipe_write: sleep on %lx", p));
  42. @@ -669,7 +676,9 @@
  43.      if (bytes_written > 0) {
  44.          if (p->rsel) {
  45.              wakeselect(p->rsel);
  46. +#if 0
  47.              p->rsel = 0;
  48. +#endif
  49.          }
  50.          wake(IO_Q, (long)p);    /* maybe someone wants this data */
  51.      }
  52. @@ -722,7 +731,9 @@
  53.      /* is someone select()ing the other end of the pipe for writing? */
  54.              if (p->wsel) {
  55.                  wakeselect(p->wsel);
  56. +#if 0
  57.                  p->wsel = 0;
  58. +#endif
  59.              }
  60.              wake(IO_Q, (long)p);    /* writers may continue */
  61.              sleep(IO_Q, (long)p);
  62. @@ -731,7 +742,9 @@
  63.      if (bytes_read > 0) {
  64.          if (p->wsel) {
  65.              wakeselect(p->wsel);
  66. +#if 0
  67.              p->wsel = 0;
  68. +#endif
  69.          }
  70.          wake(IO_Q, (long)p);    /* wake writers */
  71.      }
  72. -- 
  73. J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
  74.                                 ...ohne Gewehr
  75. PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA 
  76.